<template>
  <div>
    son page {{ count }}<br />
    已经做完事项： {{ todosLength }} 个 <br />
    未做完事项：{{ $store.getters.undoTodosLength }} 个 <br />
    第一件事：{{ $store.getters.getTodoById(1) }}
  </div>
</template>

<script>
export default {
  name: 'Son',
  components: {},
  computed: {
    count() {
      return this.$store.state.count
    },
    todosLength() {
      return this.$store.getters.doneTodos.length
    },
  },
}
</script>

<style lang="scss" scoped></style>
